<div align="center">
	<?
		if($loi != ""){
			echo "<ul>\n";
				foreach ($loi as $error){
					echo "<li>$error<li>\n";
				}
			echo "</ul>\n";
		}
	?>
</div>
<div align="center">
	<form action="index.php?module=listuser&action=edit&id=<?php echo $id;?>" method="POST">
		<table>
			<tr>
				<td>Level:</td>
				<td>
					<select name="lev">
						<option value='1' <?php if($data["level"] == 1) echo "selected='selected'"; ?> >Member</option>
						<option value='2' <?php if($data["level"] == 2) echo "selected='selected'"; ?> >Administrator</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>Usename:</td>
				<td><input type="text" name="user" value="<?php echo $data["username"];?>"/></td>
			</tr>
			<tr>
				<td>PassWord:</td>
				<td><input type="password" name="pass1" /></td>
			</tr>
			<tr>
				<td>Re-password:</td>
				<td><input type="password" name="pass2" /></td>
			</tr>
			<tr>
				<td>&nbsp</td>
				<td><input type="submit" name="ok" value="Edit" /></td>
			</tr>
		</table>
	</form>
</div>